<?php /* Smarty version 2.6.18, created on 2016-12-15 22:10:57
         compiled from shops/m.procurement.list.tpl.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'shops/m.procurement.list.tpl.php', 17, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--主体部分-->

<div class="container" style="margin-top:70px;">
    <!--<div class="row" style="margin-right:10%;">
        <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="paper_add.html" style="width:30%">增加</a></div>
       </div>--><!--row  end-->
    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        <?php $_from = $this->_tpl_vars['shop_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>
                <td>申购人</td>
                <td><?php echo $this->_tpl_vars['value']['user_name']; ?>
</td>
            </tr>
            <tr>
                <td>采购内容</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['value']['shop_content'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, "...") : smarty_modifier_truncate($_tmp, 30, "...")); ?>
</td>
            </tr>
            <tr>
                <td>指派时间</td>
                <td><?php echo $this->_tpl_vars['value']['assign_time']; ?>
</td>
            </tr>
            <tr>
                <td>采购人员</td>
                <td><?php echo $this->_tpl_vars['value']['shops_name']; ?>
</td>
            </tr>
            <tr>
                <td>加急项目</td>
                <td><?php if ($this->_tpl_vars['value']['shop_urgent'] == 1): ?><span class="glyphicon glyphicon-ok"></span><?php endif; ?></td>

            </tr>
            <tr>
                <td>备注</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['value']['shop_remark'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, "...") : smarty_modifier_truncate($_tmp, 30, "...")); ?>
</td>
            </tr>
            <tr>
                <td>采购报告</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['value']['shop_report'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 30, "...") : smarty_modifier_truncate($_tmp, 30, "...")); ?>
</td>
            </tr>

            <td>操作</td>
            <td>
                <?php if ($this->_tpl_vars['value']['shop_type'] == 2): ?>
                <a href="index.php?a=shops.procurementUpdate&shop_id=<?php echo $this->_tpl_vars['value']['shop_id']; ?>
" class="btn btn-warning btn-xs">录 入</a>
                <?php else: ?>
                <a class="btn btn-primary btn-xs">完 成</a>
                <?php endif; ?>
                <a href="index.php?a=shops.procurementdetails&shop_id=<?php echo $this->_tpl_vars['value']['shop_id']; ?>
&shops_type=caigou" class="btn btn-success btn-xs">查 看</a>
            </td>
            </tr>
        </table>
        <?php endforeach; endif; unset($_from); ?>
    </div>
</div>
<!--container  end-->

<!--主体部分  end-->
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<!--日历-->
<script>
    $(function() {
        $( "#datepicker" ).datepicker({

            changeMonth: true,
            changeYear: true

        });

        $( "#datepicker2" ).datepicker({

            changeMonth: true,
            changeYear: true

        });
    });
</script>
</body>
</html>